# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

DESCRIPTION="Gnone2 Global Menu"
HOMEPAGE="http://code.google.com/p/gnome2-globalmenu/"
SRC_URI="http://gnome2-globalmenu.googlecode.com/files/${P}.tar.gz http://gnome2-globalmenu.googlecode.com/files/GNOME_GlobalMenuApplet.server"
RESTRICT="mirror"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 amd64"
IUSE=""

DEPEND=">=x11-libs/gtk+-2.8.20-r1
		>=gnome-base/gconf-2
		x11-libs/libwnck"

src_compile() {
		econf || die "Error: econf failed!"
		emake || die "Error: emake failed!"
}

src_install() {
		make install DESTDIR=${D}
		insinto /usr/lib/bonobo/servers
		doins "${DISTDIR}"/GNOME_GlobalMenuApplet.server
} 
